import request from '@/utils/request'

/**
 * 分页查询机台产品产能 pp/p/productLine/getAll
 * @param deviceCapacity
 */
export function selectDeviceCapacity(data) {
  return request({
    url: `/pp/p/deviceCapacity/getAll`,
    method: 'post',
    data
  })
}

/**
 * 分页查询一条机台产品产能
 * @param getById
 */
export function getById(bo) {
  return request({
    url: `/pp/p/productLine/get/${bo}`,
    method: 'get'
  })
}
/**
 * 保存机台产品产能数据
 * @param save
 */
export function saveDeviceCapacity(data) {
  return request({
    url: `/pp/p/deviceCapacity/save`,
    method: 'post',
    data
  })
}

/**
 * 删除
 * @param deviceCapacity
 */
export function deleteDeviceCapacity(data) {
  return request({
    url: `/pp/p/deviceCapacity/delete`,
    method: 'post',
    data
  })
}
